#ifndef __ANALOG_COMPARATOR_H__
#define __ANALOG_COMPARATOR_H__

void init_serial(void);
void ADC_init(void); 
void start_conversion(void);
void start_conversion_charging(void);
void start_conversion_discharging(void);
void set_time_stuff(unsigned long x);
double get_time_stuff(void);
//int serial_putch(char c, struct __file *f);
int print_double(double f);
double AC_conversion(void);
unsigned long q_nexp(unsigned long x);

extern double time_stuff;
extern double sensor_offset[5];
extern double sensor_slope[5];
unsigned long get_global_var(void);
void select_AIN_pin(int x);

#endif //__ANALOG_COMPARATOR_H__
